<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        body{
            margin: 0px;
        }
        #div{
            width: 400px;
            height: 2000px;
            background:gray;
        }
        .div{
            width: 100px;
            height: 100px;
            /*margin: 10px;*/
        }
        #d1{
            background: #008B8B;
            float: left;
        }
        #d2{
            background: rebeccapurple;
            float: left;

        }
        #d3{
            background: orange;
            float: left;
        }
        #d4{
            background: aqua;
            float: left;
        }
        .span{
            width: 50px;
            height: 50px;
        }
        #s1{
            background: orange;
        }
        #s2{
            background: green;
        }
    </style>
</head>
<body>
<div id="div">
    <div id="d1" class="div">div1</div>
    <div id="d2" class="div">div2</div>
    <div id="d3" class="div">div3</div>
    <div id="d4" class="div">div4</div>
</div>


</div>

</body>
</html>